package a;

//1、继承Thread
public class MyThread extends Thread{

    //2、重写run()
    @Override
    public void run(){
        for (int i = 0; i < 100; i++) {
            System.out.println(i);
        }
    }
}
